<?php
namespace app\index\model;

use think\Model;

class Putlog extends Model
{
	public function getTypeAttr($value){
		switch ($value){
			case 1:
			$typename = '消费';
			break;
			case 2:
			$typename = '充值';
			break;
			case 3:
			$typename = '退还';
			break;
			case 4:
			$typename = '结算';
			break;
			default:
			$typename = '提现';
		}
		return $typename;
	}
	public function getStatusAttr($value){
		return $value == 1 ? '成功' : '失败';
	}
}